package com.ssyx.payment.feign;

import com.ssyx.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * ClassName:OrderFeignClient
 * Description:
 *
 * @Author kay
 * @Create 2024/5/24 19:50
 * @Version 1.0
 */
@FeignClient(value = "service-order")
public interface OrderFeignClient {

    //根据orderNo,查询订单相关信息
    @GetMapping("/api/order/inner/getOrderInfoByOrderNo/{orderNo}")
    OrderInfo getOrderInfoByOrderNo(@PathVariable String orderNo);

    //修改订单信息表状态,已支付后的状态
    @PostMapping("/api/order/inner/orderPay/{orderNo}")
    Boolean orderPay(@PathVariable String orderNo);
}
